<?php
/**
 * @version		$Id: servers.php 2011.08.11 thierry $
 * @package		admin.models
 * @subpackage	com_projid
 * @copyright	Copyright (C) 2011 Pojid All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// import the Joomla modellist library
jimport('joomla.application.component.modellist');

class ProjidModelServers extends JModelList
{
	protected function getListQuery() 
	{
		// Create a new query object.
		$db = JFactory::getDBO();
		$query = $db->getQuery(true);

		// Select some fields
		$query->select('id_serv,desc_serv,host,base,user,password,driver');

		// From the hello table
		$query->from('#__projid_server');
		return $query;
	}
}